home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 793 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: class basic_string<>
  5. Date: 20 Mar 1996 16:06:27 GMT
  6. Organization: The Cantrip Cooperative
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <314F9DC4.470A84CF@cantrip.org>
  9. References: <3147413B.B10@trcinc.com>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset="us-ascii"
  13. Content-Transfer-Encoding: 7bit
  14. X-Nntp-Posting-Host: ncm.vip.best.com
  15. X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i386)
  16. X-Lines: 23
  17. Content-Length: 989
  18. Originator: clamage@taumet
  19.  
  20. Rich Paul <rpaul@trcinc.com> wrote:
  21. > I am currently implementing, from the working paper, class
  22. > basic_string.  ...
  23. >  before calling traits::deallocate, should I
  24. > explicitly call destructors on the charT's in my array, since it
  25. > may be a class type, or does the definition of charT as being
  26. > 'char-like' preclude this?
  27.  
  28. (I assume Paul means Allocator::deallocate.)
  29. The requirements on a character type used as an element
  30. of a string certainly should be documented, at least as 
  31. well as are other template parameters in the Draft.  As
  32. I recall, this was an open issue for the Strings chapter,
  33. but the expectation was that characters would be assumed to 
  34. to have (at most) ignorable constructors and destructors.
  35.  
  36. I have some good news and bad news for Paul ... 
  37. The bad news is that the traits and allocator interfaces were
  38. both changed at the March '96 meeting.  The good news is that
  39. both are considerably simpler than before.
  40.  
  41. Nathan Myers
  42. ncm@cantrip.org  http://www.cantrip.org/
  43.  
  44.  
  45. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  46. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  47. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  48. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  49. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  50.